#pragma once

#include <iostream>
#include <string>
#include <unordered_map>
#include <memory>

using namespace std;
class Session
{
public:
    Session()
    {}
    ~Session()
    {}
private:
    string username;
    string passwd;

    int stauts;
    uint64_t time;

};

using session_ptr = unique_ptr<Session>;

class SessionManage
{
public:
    SessionManage()
    {}
    ~SessionManage()
    {}
    void AddSession(string& username,string passwd)
    {}
    void DelSession(string& sessionid)
    {}
    void ModSession(string& sessionid,session_ptr newsession)
    {}
    void SearchSession(string& sessionid)
    {}

private:
//string ： sessionid
//session_ptr ： Session
    unordered_map<string,session_ptr> sessions;
};